/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package domaci3.controller;

import domaci3.model.DvostrukoSpregnutaLista;
import domaci3.view.View;

/**
 *
 * @author Ilija
 */

public enum Controller {
    INSTANCE;
    protected DvostrukoSpregnutaLista lista;
    protected View view;
  
    public void OsluskujDugmeSacuvaj(){
        view.getSacuvaj().addActionListener(new MojOsluskivac(this));
    }
    
    public void OsluskujPrikazi(){
        view.getJMenuItem3().addActionListener(new MojOsluskivac2(this));
    }

    public DvostrukoSpregnutaLista getLista() {
        return lista;
    }

    public void setLista(DvostrukoSpregnutaLista lista) {
        this.lista = lista;
    }

    public View getView() {
        return view;
    }

    public void setView(View view) {
        this.view = view;
    }
}
    

    

    

    
    

